package zero.tech.wsnet.net.process;

import zero.tech.core.data.Resp;
import zero.tech.core.data.RespCode;
import zero.tech.wsnet.common.ReqProcess;
import zero.tech.wsnet.data.CMD;
import zero.tech.wsnet.data.IREQ;
import zero.tech.wsnet.data.Message;
import zero.tech.wsnet.net.WebClient;

@IREQ(code = CMD.COMMON_REQ_HEART_BEAT)
public class ReqHeartBeatProcess extends ReqProcess {

	@Override
	public void process(WebClient webClient, Resp param) {
		webClient.sendMessage(Message.build(CMD.COMMON_RES_HEART_BEAT, Resp.build(RespCode.OK, "返回心跳包")));
	}
}
